<template>
    <div id="app">
        <div id="cover"></div>
        <Header></Header>
      <!--<router-link :to="login" tag="a">Login</router-link>-->
      <router-link :to="{name:'app'}">app</router-link>
      <router-link to="login">login</router-link>
      <div class="login">
        <h2>User {{ $route.params.id }}</h2>
        <p>
          <router-link to="/login/Boo">/user/Boo</router-link>
          <router-link to="/login/Boo/A">/user/Boo/A</router-link>
          <router-link to="/login/Boo/B">/user/Boo/B</router-link>
        </p>
        <router-view></router-view>
      </div>
        <!--<Todo></Todo>-->
      <!--<router-link :to="app">app</router-link>-->

      <router-view></router-view>
        <Footer></Footer>
        <p :class="$style.docs">{{docs}}</p>
    </div>
</template>

<script>
    import Header from './layout/header.vue'
    import Footer from './layout/footer.jsx'
    import Todo from './views/todo/todo.vue'
    // import Login from '../views/login/Login.vue'

    export default {
      components: {
        Header,
        Footer,
        Todo
      },
      data () {
        return {
          docs: Todo.__docs
        }
      },
      mounted () {
        console.log(this.$route.params.id)
      }
    }
</script>
<style lang="stylus" module>
    #app {
        position absolute
        left 0
        right 0
        top 0
        bottom 0
    }

    #docs {
        font-size: 1px
        color blanchedalmond
        text-align center
    }

    #cover {
        position absolute
        left 0
        top 0
        right 0
        bottom 0
        background-color #999
        opacity .9
        z-index -1
    }
</style>


